﻿<?xml version="1.0" encoding="utf-8"?>
<xs:schema attributeFormDefault="unqualified" elementFormDefault="qualified"
           targetNamespace="http://master-of-omega/PlanetConfiguration.xsd"
           xmlns="http://master-of-omega/PlanetConfiguration.xsd"
           xmlns:xs="http://www.w3.org/2001/XMLSchema">
  <xs:element name="PlanetConfiguration">
    <xs:complexType>
      <xs:sequence>
        <xs:element name="OrbitalConfiguration">
          <xs:complexType>
            <xs:sequence>
              <xs:element maxOccurs="unbounded" name="Orbital">
                <xs:complexType>
                  <xs:attribute name="Description" type="xs:string" use="required" />
                  <xs:attribute name="ID" type="xs:unsignedByte" use="required" />
                  <xs:attribute name="AU" type="xs:decimal" use="required" />
                  <xs:attribute name="PlanetSizeRangeInRegions" type="xs:string" use="required" />
                </xs:complexType>
              </xs:element>
            </xs:sequence>
            <xs:attribute name="Description" type="xs:string" use="required" />
          </xs:complexType>
        </xs:element>
        <xs:element name="PlanetOrbital">
          <xs:complexType>
            <xs:sequence>
              <xs:element maxOccurs="unbounded" name="Configuration">
                <xs:complexType>
                  <xs:sequence>
                    <xs:element name="PlanetChances">
                      <xs:complexType>
                        <xs:attribute name="ChancePerOrbital" type="xs:string" use="required" />
                      </xs:complexType>
                    </xs:element>
                  </xs:sequence>
                  <xs:attribute name="StarLuminosity" type="xs:string" use="required" />
                  <xs:attribute name="Description" type="xs:string" use="required" />
                </xs:complexType>
              </xs:element>
            </xs:sequence>
            <xs:attribute name="Description" type="xs:string" use="required" />
          </xs:complexType>
        </xs:element>
        <xs:element name="PlanetDiameterRegions">
          <xs:complexType>
            <xs:sequence>
              <xs:element maxOccurs="unbounded" name="RegionToDiameter">
                <xs:complexType>
                  <xs:attribute name="Region" type="xs:unsignedByte" use="required" />
                  <xs:attribute name="Diameter" type="xs:unsignedInt" use="required" />
                </xs:complexType>
              </xs:element>
            </xs:sequence>
            <xs:attribute name="Description" type="xs:string" use="required" />
          </xs:complexType>
        </xs:element>
        <xs:element name="PlanetTypes">
          <xs:complexType>
            <xs:sequence>
              <xs:element maxOccurs="unbounded" name="PlanetType">
                <xs:complexType>
                  <xs:attribute name="MapType" type="xs:string" use="required" />
                  <xs:attribute name="SizeRange" type="xs:string" use="optional" />
                  <xs:attribute name="OrbitalRange" type="xs:string" use="required" />
                </xs:complexType>
              </xs:element>
            </xs:sequence>
            <xs:attribute name="Description" type="xs:string" use="required" />
          </xs:complexType>
        </xs:element>
        <xs:element name="PlanetMaps">
          <xs:complexType>
            <xs:sequence>
              <xs:element maxOccurs="unbounded" name="PlanetMap">
                <xs:complexType>
                  <xs:simpleContent>
                    <xs:extension base="xs:string">
                      <xs:attribute name="MapType" type="xs:string" use="required" />
                    </xs:extension>
                  </xs:simpleContent>
                </xs:complexType>
              </xs:element>
            </xs:sequence>
            <xs:attribute name="Description" type="xs:string" use="required" />
          </xs:complexType>
        </xs:element>
        <xs:element name="Moons">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="MoonSlots">
                <xs:complexType>
                  <xs:attribute name="MinPlanetSize" type="xs:unsignedByte" use="required" />
                  <xs:attribute name="PlanetSizeSlotRatio" type="xs:unsignedByte" use="required" />
                  <xs:attribute name="MoonChancePerSlotInPercent" type="xs:unsignedByte" use="required" />
                  <xs:attribute name="MoonSizeRange" type="xs:string" use="required" />
                </xs:complexType>
              </xs:element>
              <xs:element name="MoonTypes">
                <xs:complexType>
                  <xs:sequence>
                    <xs:element maxOccurs="unbounded" name="MoonType">
                      <xs:complexType>
                        <xs:attribute name="MapType" type="xs:string" use="required" />
                        <xs:attribute name="SizeRange" type="xs:string" use="required" />
                      </xs:complexType>
                    </xs:element>
                  </xs:sequence>
                  <xs:attribute name="Description" type="xs:string" use="required" />
                </xs:complexType>
              </xs:element>
            </xs:sequence>
            <xs:attribute name="Description" type="xs:string" use="required" />
          </xs:complexType>
        </xs:element>
        <xs:element name="PlanetaryMineralRichness">
          <xs:complexType>
            <xs:sequence>
              <xs:element maxOccurs="unbounded" name="MinValue">
                <xs:complexType>
                  <xs:attribute name="ID" type="xs:unsignedByte" use="required" />
                  <xs:attribute name="Label" type="xs:string" use="required" />
                  <xs:attribute name="Dices" type="xs:unsignedByte" use="required" />
                </xs:complexType>
              </xs:element>
            </xs:sequence>
            <xs:attribute name="Description" type="xs:string" use="required" />
          </xs:complexType>
        </xs:element>
        <xs:element name="PlanetaryBioDiversity">
          <xs:complexType>
            <xs:sequence>
              <xs:element maxOccurs="unbounded" name="BioValue">
                <xs:complexType>
                  <xs:attribute name="ID" type="xs:unsignedByte" use="required" />
                  <xs:attribute name="Label" type="xs:string" use="required" />
                  <xs:attribute name="DicesPerOrbital" type="xs:string" use="required" />
                </xs:complexType>
              </xs:element>
            </xs:sequence>
            <xs:attribute name="Description" type="xs:string" use="required" />
          </xs:complexType>
        </xs:element>
        <xs:element name="PlanetaryFertilityEfficiency">
          <xs:complexType>
            <xs:sequence>
              <xs:element maxOccurs="unbounded" name="FertValue">
                <xs:complexType>
                  <xs:attribute name="ID" type="xs:unsignedByte" use="required" />
                  <xs:attribute name="Label" type="xs:string" use="required" />
                  <xs:attribute name="DicesPerBioDiv" type="xs:string" use="required" />
                </xs:complexType>
              </xs:element>
            </xs:sequence>
            <xs:attribute name="Description" type="xs:string" use="required" />
          </xs:complexType>
        </xs:element>
        <xs:element name="PlanetaryAtmosphere">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="PlanetSizeToAtmosphere">
                <xs:complexType>
                  <xs:sequence>
                    <xs:element maxOccurs="unbounded" name="Size">
                      <xs:complexType>
                        <xs:attribute name="Regions" type="xs:unsignedByte" use="required" />
                        <xs:attribute name="AtmosphereRange" type="xs:string" use="required" />
                      </xs:complexType>
                    </xs:element>
                  </xs:sequence>
                </xs:complexType>
              </xs:element>
            </xs:sequence>
            <xs:attribute name="Description" type="xs:string" use="required" />
          </xs:complexType>
        </xs:element>
        <xs:element name="PlanetaryTemperature">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="PlanetTempToOrbit">
                <xs:complexType>
                  <xs:sequence>
                    <xs:element maxOccurs="unbounded" name="Size">
                      <xs:complexType>
                        <xs:attribute name="Orbit" type="xs:unsignedByte" use="required" />
                        <xs:attribute name="TemperatureRange" type="xs:string" use="required" />
                      </xs:complexType>
                    </xs:element>
                  </xs:sequence>
                </xs:complexType>
              </xs:element>
            </xs:sequence>
            <xs:attribute name="Description" type="xs:string" use="required" />
          </xs:complexType>
        </xs:element>
        <xs:element name="PlanetaryHabilityRings">
          <xs:complexType>
            <xs:sequence>
              <xs:element maxOccurs="unbounded" name="HabValue">
                <xs:complexType>
                  <xs:attribute name="ID" type="xs:unsignedByte" use="required" />
                  <xs:attribute name="Label" type="xs:string" use="required" />
                </xs:complexType>
              </xs:element>
            </xs:sequence>
            <xs:attribute name="Description" type="xs:string" use="required" />
          </xs:complexType>
        </xs:element>
        <xs:element name="PlanetaryGravity">
          <xs:complexType>
            <xs:sequence>
              <xs:element maxOccurs="unbounded" name="GravValue">
                <xs:complexType>
                  <xs:attribute name="ID" type="xs:unsignedByte" use="required" />
                  <xs:attribute name="Label" type="xs:string" use="required" />
                </xs:complexType>
              </xs:element>
            </xs:sequence>
            <xs:attribute name="Description" type="xs:string" use="required" />
          </xs:complexType>
        </xs:element>
        <xs:element name="PlanetaryRegionTypes">
          <xs:complexType>
            <xs:sequence>
              <xs:element maxOccurs="unbounded" name="RegionType">
                <xs:complexType>
                  <xs:attribute name="ID" type="xs:unsignedByte" use="required" />
                  <xs:attribute name="Label" type="xs:string" use="required" />
                  <xs:attribute name="BackgroundImage" type="xs:string" use="required" />
                  <xs:attribute name="Icon" type="xs:string" use="required" />
                </xs:complexType>
              </xs:element>
            </xs:sequence>
            <xs:attribute name="Description" type="xs:string" use="required" />
          </xs:complexType>
        </xs:element>
      </xs:sequence>
      <xs:attribute name="Description" type="xs:string" use="required" />
    </xs:complexType>
  </xs:element>
</xs:schema>